package org.hawk.gwtppc.webtest.tests.classsuite;

import java.lang.reflect.Modifier;

import org.hawk.gwtppc.webtest.common.Asserts;
import org.hawk.gwtppc.webtest.common.Test;
import org.hawk.gwtppc.webtest.tests.mock.ClassMock;
import org.hawk.gwtppc.webtest.tests.mock.SubClassMock1;
import org.hawk.gwtppc.webtest.tests.mock.SubClassMock2;

public class GetModifiersTest implements Test {

	public void run() throws Throwable {
		Asserts.assertEquals(SubClassMock1.class.getModifiers(), Modifier.PUBLIC);
		Asserts.assertEquals(SubClassMock2.class.getModifiers(), Modifier.FINAL | Modifier.PUBLIC);
		Asserts.assertEquals(ClassMock.class.getModifiers(), Modifier.ABSTRACT | Modifier.PUBLIC);
		Asserts.assertEquals(Class.forName("org.hawk.gwtppc.webtest.tests.mock.UnreferencedMock").getModifiers(), 0);
	}

	public String getName() {
		return "getModifiers()";
	}

}
